// Copyright © 2024 The Things Network Foundation, The Things Industries B.V.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//     http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

.notifications-dropdown
  &-header
    font-size: $fs.l
    padding: $cs.xl $cs.l
    border-bottom: 1px solid light-dark(var(--c-border-neutral-light), var(--c-border-neutral-normal))
    margin-bottom: 0
    font-weight: $fw.bold
    line-height: 1

  &-link
    align-items: start
    justify-content: center
    gap: $cs.m
    text-decoration: none
    border-bottom: 1px solid light-dark(var(--c-border-neutral-light), var(--c-border-neutral-normal))
    padding: $cs.m 1.25rem
    color: var(--c-text-neutral-heavy)

    &:visited
      color: initial

    &:hover
      background: light-dark(var(--c-border-neutral-light), var(--c-border-neutral-normal))

    &-icon
      display: block
      border-radius: $br.m
      border: 1px solid var(--c-border-neutral-light)
      background: light-dark(var(--c-bg-neutral-min), var(--c-bg-neutral-heavy))
      color: var(--c-text-brand-normal)
      padding: $cs.m
      height: 1.25rem

    .title
      overflow: hidden
      text-overflow: ellipsis
      line-height: normal
      margin-bottom: $cs.xxs
      color: var(--c-text-neutral-heavy)

    .notification-container
      overflow: auto

    .preview-content
      line-height: normal
      margin-bottom: $cs.xxs

    .hide-status > span
      display: none

.total-message
  border-radius: 0 0 $br.l $br.l

.empty-state
  padding: 3.5rem $cs.l

.bookmark
  overflow: hidden
  text-overflow: ellipsis

  &-container
    padding: $cs.xs

    &-border-bottom
      border-bottom: 1px solid var(--c-border-neutral-light)

  &-limit-message
    border-radius: $br.l
    border-top-right-radius: 0
    border-top-left-radius: 0
